﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 类_继承中的构造函数调用过程
{
    class Program
    {
        static void Main(string[] args)
        {
            B b = new B(2,3,4);
        }
    }

    class A
    {
        public int x;
        public A(int x)
        {
            this.x = x;
        }

        public A()
        {

        }
    }

    class B:A
    {
        int y;
        int z;
        public B(int x,int y,int z)
        {
            this.y = y;
            this.z = z;
            this.x = x;
        }

        public B()
        {

        }
    }
}
